home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-06-22 | 2.2 KB | 87 lines | [TEXT/PLP3] |
- Porting UNIX to the MacOS 7.xx
- For Applications
-
- Stuart Schmukler
- stuarts@netcount.com
-
- Scope of the problem.
- look a for ‘clean’ build of the product.
- Base your estimates on reality!
- (The PSP method has help me.)
- Which Unix??? What is UNIX???
- BSD – 4.4, 4.3, FreeBSD, etc.
- System V – HP-UX, etc.
- Mach
- AIX
- Real Time – VxWorks, pSoS, Chorus, etc.
- Random POSIX libraries
- What do you use from UNIX
- File IO
- Shared memory
- Process services
- Network
- etc.
- LIbraries
- UNIX – #define SYSmdio_h “<sys/mdio.h>”
- MacOS – #define SYSmdio_h “<sys:mdio.h>”
- Process services
- MacOS – #define fork (a) NULL
- UNIX – sizeof(pid_t) = 4
- MacOS - sizeof(pid_t) = 8
- NetWork
- Sockets resources:
- GUSI
- includes incomplete
- Open Transport problems
- WinSOCK (NetManage)
- LaNWork place (BSD sockets)
- GUSI
- CW GUSI
- sk GUSI (Thread Mgr calls)
- Harvard Desiscion support group
- MIT
- Open Transport (XTI)
- Port a test application
- netperf (maintained by HP)
- Threads
- Thread Mgr on PCC MacOS is NOT preemptive!!
- mutex
- condition varaibles
- PCC ports currently have to
- have yields inserted.
- PThreads
- See the portable pthreads home page:
- http://www.mit.edu/people/proven/pthreads.html
- Base a port on the DayStar MThread library??
- Need atomic set and get
- Unix compilers SUCK
- gcc
- -- forscope: for (int i, ... ) { } if ( i )
- ARM changed
- MetroWerks CodeWarrior 9 has an ARM flag.
- Prototypes
- gcc -wextern ???
- Linking
- Shared libraries
- UNIX statics are local to process
- ALSM statics are global to machine
- CFM (switchable ???)
- Segmentation
- Memory
- what to free and when???
- XWindows
- static allocation this norm.
- UNIX has few partition size limits.
- Email address:
- stuarts@netcount.com
- I’d like to open a conversation between people porting to the MacOS.
- We can make this a living document.
- MacOS 8 will be a new set of challanges!!
- References:
- Porting UNIX software, Greg Lehey, O’Reilly & Associates, Inc., 1995
- ISBN 1-56592-126-7
- THREADS Primer: A Guide to MuliThreaded Programming, Bil Lewis & Daniel J. Berg
- ISBN 0-13-443698-9
- Advanced Topics in UNIX: Processes, Files, and Systems; Ronald J. Leach
- ISBN 0-471-03663-3
-